package org.southyin.securitysamples.controller;

import org.southyin.securitysamples.model.CmsLog;
import org.southyin.securitysamples.service.CmsLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    CmsLogService service;
    @GetMapping("/")
    public List<CmsLog> listLog(String keyWords) {
        return service.listLog(keyWords);
    }
}
